import request from '@/utils/request'

// export function loginByUsername(username, password) {
//   const data = {
//     username,
//     password
//   }
//   return request({
//     url: '/login/login',
//     method: 'post',
//     data
//   })
// }

export function logout() {
  return request({
    url: window.env.localHost + ':' +  window.env.localPort + '/logout',
    method: 'get'
  })
}

export function getUserInfo(groupId) {
  return request({
    url: '/api/usercenter/user/front/info',
    method: 'get',
    params: {
      category: 'mes',
      groupId
    }
  })
}
